Optimal. Leaf size=165 \[ \frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\sqrt{a} \sqrt{b} e+a g+b c\right )}{2 a^{3/4} b^{5/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e+a g+b c\right )}{2 a^{3/4} b^{5/4}}+\frac{(a h+b d) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}-\frac{f \log \left (a-b x^4\right )}{4 b}-\frac{g x}{b}-\frac{h x^2}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.260628, antiderivative size = 165, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 9, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {1885, 1887, 1167, 205, 208, 1819, 1810, 635, 260} \[ \frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\sqrt{a} \sqrt{b} e+a g+b c\right )}{2 a^{3/4} b^{5/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e+a g+b c\right )}{2 a^{3/4} b^{5/4}}+\frac{(a h+b d) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}-\frac{f \log \left (a-b x^4\right )}{4 b}-\frac{g x}{b}-\frac{h x^2}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1885
Rule 1887
Rule 1167
Rule 205
Rule 208
Rule 1819
Rule 1810
Rule 635
Rule 260
Rubi steps
\begin{align*} \int \frac{c+d x+e x^2+f x^3+g x^4+h x^5}{a-b x^4} \, dx &=\int \left (\frac{c+e x^2+g x^4}{a-b x^4}+\frac{x \left (d+f x^2+h x^4\right )}{a-b x^4}\right ) \, dx\\ &=\int \frac{c+e x^2+g x^4}{a-b x^4} \, dx+\int \frac{x \left (d+f x^2+h x^4\right )}{a-b x^4} \, dx\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{d+f x+h x^2}{a-b x^2} \, dx,x,x^2\right )+\int \left (-\frac{g}{b}+\frac{b c+a g+b e x^2}{b \left (a-b x^4\right )}\right ) \, dx\\ &=-\frac{g x}{b}+\frac{1}{2} \operatorname{Subst}\left (\int \left (-\frac{h}{b}+\frac{b d+a h+b f x}{b \left (a-b x^2\right )}\right ) \, dx,x,x^2\right )+\frac{\int \frac{b c+a g+b e x^2}{a-b x^4} \, dx}{b}\\ &=-\frac{g x}{b}-\frac{h x^2}{2 b}+\frac{\operatorname{Subst}\left (\int \frac{b d+a h+b f x}{a-b x^2} \, dx,x,x^2\right )}{2 b}+\frac{1}{2} \left (e-\frac{b c+a g}{\sqrt{a} \sqrt{b}}\right ) \int \frac{1}{-\sqrt{a} \sqrt{b}-b x^2} \, dx+\frac{1}{2} \left (e+\frac{b c+a g}{\sqrt{a} \sqrt{b}}\right ) \int \frac{1}{\sqrt{a} \sqrt{b}-b x^2} \, dx\\ &=-\frac{g x}{b}-\frac{h x^2}{2 b}+\frac{\left (b c-\sqrt{a} \sqrt{b} e+a g\right ) \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 a^{3/4} b^{5/4}}+\frac{\left (b c+\sqrt{a} \sqrt{b} e+a g\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 a^{3/4} b^{5/4}}+\frac{1}{2} f \operatorname{Subst}\left (\int \frac{x}{a-b x^2} \, dx,x,x^2\right )+\frac{(b d+a h) \operatorname{Subst}\left (\int \frac{1}{a-b x^2} \, dx,x,x^2\right )}{2 b}\\ &=-\frac{g x}{b}-\frac{h x^2}{2 b}+\frac{\left (b c-\sqrt{a} \sqrt{b} e+a g\right ) \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 a^{3/4} b^{5/4}}+\frac{\left (b c+\sqrt{a} \sqrt{b} e+a g\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 a^{3/4} b^{5/4}}+\frac{(b d+a h) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}-\frac{f \log \left (a-b x^4\right )}{4 b}\\ \end{align*}
Mathematica [A] time = 0.257312, size = 256, normalized size = 1.55 \[ \frac{-\log \left (\sqrt [4]{a}-\sqrt [4]{b} x\right ) \left (a^{5/4} h+\sqrt{a} b^{3/4} e+\sqrt [4]{a} b d+a \sqrt [4]{b} g+b^{5/4} c\right )+\log \left (\sqrt [4]{a}+\sqrt [4]{b} x\right ) \left (a^{5/4} (-h)+\sqrt{a} b^{3/4} e-\sqrt [4]{a} b d+a \sqrt [4]{b} g+b^{5/4} c\right )-a^{3/4} \sqrt{b} f \log \left (a-b x^4\right )-4 a^{3/4} \sqrt{b} g x-2 a^{3/4} \sqrt{b} h x^2+2 \sqrt [4]{b} \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\sqrt{a} \sqrt{b} e+a g+b c\right )+\sqrt [4]{a} (a h+b d) \log \left (\sqrt{a}+\sqrt{b} x^2\right )}{4 a^{3/4} b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.045, size = 296, normalized size = 1.8 \begin{align*} -{\frac{h{x}^{2}}{2\,b}}-{\frac{gx}{b}}+{\frac{g}{2\,b}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }+{\frac{c}{2\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }+{\frac{g}{4\,b}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{c}{4\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }-{\frac{ah}{4\,b}\ln \left ({ \left ( -a+{x}^{2}\sqrt{ab} \right ) \left ( -a-{x}^{2}\sqrt{ab} \right ) ^{-1}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{d}{4}\ln \left ({ \left ( -a+{x}^{2}\sqrt{ab} \right ) \left ( -a-{x}^{2}\sqrt{ab} \right ) ^{-1}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{e}{2\,b}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e}{4\,b}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-{\frac{f\ln \left ( b{x}^{4}-a \right ) }{4\,b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.08378, size = 539, normalized size = 3.27 \begin{align*} -\frac{f \log \left ({\left | b x^{4} - a \right |}\right )}{4 \, b} - \frac{b h x^{2} + 2 \, b g x}{2 \, b^{2}} + \frac{\sqrt{2}{\left (\sqrt{2} \sqrt{-a b} b^{2} d - \sqrt{2} \sqrt{-a b} a b h + \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (-a b^{3}\right )^{\frac{1}{4}} a b g + \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (-\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (-\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\sqrt{2} \sqrt{-a b} b^{2} d - \sqrt{2} \sqrt{-a b} a b h + \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (-a b^{3}\right )^{\frac{1}{4}} a b g + \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (-\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (-\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (-a b^{3}\right )^{\frac{1}{4}} a b g - \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \log \left (x^{2} + \sqrt{2} x \left (-\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{-\frac{a}{b}}\right )}{8 \, a b^{3}} - \frac{\sqrt{2}{\left (\left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (-a b^{3}\right )^{\frac{1}{4}} a b g - \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \log \left (x^{2} - \sqrt{2} x \left (-\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{-\frac{a}{b}}\right )}{8 \, a b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]